{% set product = hookable_metadata.context.product %}
{% set variant = hookable_metadata.context.variant %}
{% set channel_pricing = hookable_metadata.context.channel_pricing %}

{% if hookable_metadata.context.channel is defined %}
    <td class="text-end">
        <a class="btn" {{ sylius_test_html_attribute('price-history') }} href="{{ path('sylius_admin_channel_pricing_log_entry_index', { productId: product.id, variantId: variant.id, channelPricingId: channel_pricing.id }) }}">
            {{ ux_icon('tabler:eye') }}
        {{ 'sylius.ui.show'|trans }}
        </a>
    </td>
{% else %}
    <td></td>
{% endif %}
